Release 10.1A: OpenEdge Development:
Java Open Clients
Microsoft Internet Explorer
Internet Explorer allows you to download and install Java libraries on the user's computer; therefore, the Open Client Runtime can be downloaded and installed once. Internet Explorer also supports versioning on these Java libraries. This allows you to update your users automatically when the Open Client Runtime is updated.
To install the Open Client Runtime from a Web page, you add an
OBJECTtag to your Web page as shown in the following code:
When you do this, you must modify the
CODEBASEattribute to the location of the Open Client Runtime packages on the Web server from which the.cabfile was distributed. When Internet Explorer encounters this tag, it looks in the user’s Windows registry for an entry with the specified class ID and version. Then, it looks to see if theo4glrt.cabfile exists. If either of these above conditions is not met, the.cabfile is downloaded.The Microsoft security classes are not available as a standalone package. You can get these security classes by downloading the latest Microsoft Java SDK from http://www.microsoft.com.
Each Open Client Runtime
.cabfile has a unique class ID. This allows your application to change the types of network protocols it uses dynamically the next time the Web page is run. The version number, which changes for each release, is supplied by OpenEdge in theo4glrt.cabfile'sopen4glrt??.inffile.Once the
.cabfile is downloaded, a dialog box opens, advising the user that this code needs to be trusted and is signed by Progress Software Corporation. If the user selects OK, the.zipfile is installed in theWindows/Java/TrustedLibdirectory, and all required registry keys are added or updated.If the user selects OK, the
.zipfile also is added dynamically to theTrustedClassPath. This entry is volatile, and if the user restarts Internet Explorer, the.zipfile is no longer included in itsCLASSPATH. Therefore, any time you have a Web page that uses the Open Client Runtime, you should include thatOBJECTtag. Once the code is installed, there is no further action required by users based on thatOBJECTtag, even if they restart Internet Explorer. Since the runtime is installed on theTrustedClassPath, only trusted code can access it. Since you need to be trusted to open a connection to an OpenEdge server, you are required to package your applet and proxies into a signed.cabfile. Once you have done this, you can add an applet tag like this:
The code attribute specifies your applet's class name that must be contained in the
.cabfile specified with thecabbasePARAM. The value of thecabbasePARAMshould point to the.cabfile's path that contains the applet and proxy on the distribution Web server.Internet Explorer looks for the
cabbase, and if it finds it, downloads the specified.cabfile. Since this is a signed.cabfile, a dialog box opens and displays information from your code signing certificate. Your Java code is saved in Internet Explorer's volatile cache, so if the user restarts the Internet Explorer, your.cabfile is downloaded again.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |